package io.github.wangtianruipopo.cardsdoudizhu.impl;

import io.github.wangtisnruipopo.carscore.types.AbsRound;
import lombok.Getter;

public class DouDiZhuRound extends AbsRound<DouDiZhuDecor, DouDiZhuCardValue, DouDiZhuCard, DouDiZhuPlayer, DouDiZhuPlayCardsRecord> {

    /**
     * <h2>判断是否是叫地主的回合</h2>
     * <p>如果是叫地主的回合，则status为true</p>
     * <p>反之为false</p>
     */
    @Getter
    private boolean status;

    @Override
    public void created() {
        this.status = this.index == 0;
    }

    @Override
    public long timerDelay() {
        // 如果是叫地主阶段，给60秒，否则给30秒
        return this.status ? 60000L : 30000L;
    }

    @Override
    public boolean nextPlayer() {
        return true;
    }

    @Override
    public void afterCreateLicence(StringBuffer licence) {

    }

}
